home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pcv05n08.zip / WAIT.DOC < prev    next >
Text File  |  1993-06-12  |  1KB  |  35 lines

  1. WAIT.COM                 August 1992                   Ed Quillen
  2. -----------------------------------------------------------------
  3. Purpose:       WAIT is a short utility that lets you build a
  4.                delay into any batch file and determine its 
  5.                duration on a case-by-case basis.
  6.  
  7.                If you press any key before WAIT reaches its
  8.                timeout, it returns the errorlevel that can
  9.                take you past a step in your batch file.
  10.  
  11. Format:        To use the program, insert the word WAIT on its
  12.                own line in a batch file, followed by a number
  13.                that represents how many seconds you want the 
  14.                file to wait before it moves to the next line.
  15.  
  16.                On the line directly beneath WAIT, insert
  17.  
  18.                     IF ERRORLEVEL 1 GOTO
  19.  
  20.                followed by a location (label) name such as 
  21.                SKIP in the example below.  In this example, the
  22.                batch file waits ten seconds before backing up 
  23.                or skis to an impertinent message at the end if 
  24.                you press a key.
  25.  
  26.                ECHO Will back up in 10 seconds unless you press a key
  27.                WAIT 10
  28.                IF ERRORLEVEL 1 GOTO SKIP
  29.                BACKUP C:\*.* /S A:
  30.                GOTO END
  31.                :SKIP
  32.                Echo Hey, you really should back up
  33.                :END
  34.  
  35.